package com.cyzy.controller;

import com.cyzy.domain.dto.ResponseData;
import com.cyzy.domain.query.ShowBaseList;
import com.cyzy.service.LandService;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/land")
@RequiredArgsConstructor
public class LandController {
    @Autowired
    private LandService landService;

    @PostMapping("showBaseList")
    public ResponseData showBaseList(@RequestBody ShowBaseList showBaseList){
        ResponseData data = landService.showBaseList(showBaseList);
        return data;
    }
}
